Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 18 - QuickDraw 3D Pointing Device Manager / QuickDraw 3D Pointing Device Manager Reference
QuickDraw 3D Pointing Device Manager Routines / Creating and Managing Trackers


Q3Tracker_New

You can use the Q3Tracker_New function to create a new tracker.

TQ3TrackerObject Q3Tracker_New (TQ3TrackerNotifyFunc notifyFunc);
notifyFunc
A pointer to a tracker notify function. See page 18-50 for information on writing a tracker notify function.
DESCRIPTION
The Q3Tracker_New function returns, as its function result, a reference to a new tracker object. The notifyFunc parameter specifies the tracker's notify function, which is called whenever the position or orientation of the tracker changes. If you want to poll for such changes instead of being notified, set notifyFunc to NULL. The new tracker is active and has both its position threshold and its orientation threshold set to 0. If Q3Tracker_New cannot create a new tracker, it returns NULL.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996